<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import ProcessDesigner from './components/ProcessDesigner';

// 初始化内容（默认内容）
import { xmlStr } from './xml';

const processDesignerRef = ref(null);

onMounted(() => {});

async function onSave() {
  const result = await processDesignerRef.value.onSave();
  console.log(result);
}
</script>

<template>
  <button @click="onSave">保存</button>
  <div style="height: 100%">
    <process-designer ref="processDesignerRef" :xmlStr="xmlStr" />
  </div>
</template>

<style lang="scss" scoped></style>
